module.exports = function (app) {
    const { router, middleware } = app;
    const prefix = "/api/topic";
   
    const controller = app.controller.topic;

    router.get(prefix + "/list", controller.list);
    router.post(prefix + "/create", middleware.auth(), controller.create);
    router.post(prefix + "/update", middleware.auth(), controller.update);
    router.post(prefix + "/delete", middleware.auth(), controller.delete);  

    router.get(prefix + "/teacherList", controller.teacherList);
    router.get(prefix + "/materialList", controller.materialList);
    router.get(prefix + "/lessonList", controller.lessonList);
  };
  